import request from '../../utils/request'

export function tableData<T>(data: unknown) {
  return request<List<T>>({
    url: '/operation/logs',
    method: 'POST',
    data
  })
}

export function exportData(data: unknown) {
  return request({
    url: '/export/logs',
    method: 'POST',
    data,
    responseType: 'blob'
  })
}
